package com.fs;

import com.fs.test.entity.AdEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @author huyunqiang
 * @date 2019/5/2 17:17
 */
//接口类上加入的注解中添加属性fallback,指定回调类
@FeignClient(name = "fs-service")
public interface AdFeignService {

    @PostMapping("/ad/ad/list")
    List<AdEntity> getAdList();

    @PostMapping("/ad/ad/testList")
    List<String> getTestList();
}
